<?xml version="1.0" encoding="UTF-8"?>
<definitions
  xmlns="http://www.omg.org/spec/BPMN/20100524/MODEL"
  xmlns:camunda="http://camunda.org/schema/1.0/bpmn"
  targetNamespace="Examples">

  <process id="oneUserTaskProcess" name="The One Task Process" isExecutable="true">
    <documentation>This is a process for testing purposes</documentation>
  
    <startEvent id="theStart" />
    <sequenceFlow id="flow1" sourceRef="theStart" targetRef="theTask" />
    
    <userTask id="theTask" name="UserTask">
      <extensionElements>
        <camunda:executionListener event="start">
          <camunda:script scriptFormat="groovy">
            <![CDATA[
            variable = execution.getVariable("var")
            variable.setIntProperty(variable.getIntProperty() + 1)
            execution.removeVariable("var")
            ]]>
          </camunda:script>
        </camunda:executionListener>
      </extensionElements>
    </userTask>
    
    <sequenceFlow id="flow2" sourceRef="theTask" targetRef="theEnd" />
    <endEvent id="theEnd" />
    
  </process>

</definitions>
